package cn.imvc.app.models;

import java.util.List;

import org.springframework.data.domain.Page;

import cn.imvc.app.entities.Role;
import cn.imvc.data.domain.ViewRequest;

public interface RoleModel {
	
	Page<Role> find(ViewRequest viewRequest);
	
	List<Role> find();
	
	Role get(int id);

	Role save(Role role);

	Role update(int id,Role role);

	void delete(int id);

	void deleteBatch(int[] ids);
}
